<html>
<head>
<title>Scraper</title>
<style type="text/css">
.scraper{
	border: 1px solid  #666;
	padding: 10px;
	width: 450px;
	overflow:auto;
	}
body{
	margin: 10px;
	}
</style>
</head>
<body>
<h2>Spider</h2>



<?php

ini_set("memory_limit","100M");
set_time_limit(360);
	include "Spider.php";
        include "Sitemap.php";
       include "Report.php";
        include "advanced_html_dom.php";
        include "../../System/Filesystem.php";
?>
<div class="scraper">
<?php

$url = 'http://www.designexpress.be/';
$scraper = new Spider($url);
unset($scraper);


$sitemap = new Sitemap($url);
$sitemap->generateSitemap();
$sitemap->writeSitemap("sitemap.xml");
$submit = $sitemap->pingSearchEngines($url.'sitemap.xml');
foreach($submit as $searchengine){
    echo $searchengine[0], " -> ",$searchengine[1], "\n";
}
$report = new Report();
echo $report->spiderReport();
$mydom = new advanced_html_dom();
$mydom->findAllLinks($url);
print_r($mydom->getLinksonpage());

?>
</div>
</body>
</html>